package com.yn.xgame.logic;

import com.yn.xgame.CommonConfig;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * LogicConfig
 * Created by wangboo on 17/7/13.
 */
public class LogicConfig extends CommonConfig {

    private String dbDriver;
    private String dbUrl;

    public LogicConfig(String prefix, String file) throws IOException {
        super(prefix, file);
        Properties prop = new Properties();
        InputStream is = getClass().getClassLoader().getResourceAsStream(file);
        prop.load(is);
        dbDriver = prop.getProperty("dbDriver");
        dbUrl = prop.getProperty("dbUrl");
    }

    public String getDbDriver() {
        return dbDriver;
    }


    public String getDbUrl() {
        return dbUrl;
    }

}
